package com.hntech.web.rest;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Autho changqi.wu
 * @Date 路在脚下，使劲踩！
 */
@RestController
public class TestController {

    @RequestMapping("/get")
    public String get() {
        System.out.println("get");
        return "get call";
    }

    @RequestMapping("/test")
    public String test() {
        System.out.println("test");
        return "test domain call";
    }

    @RequestMapping("/test2")
    public String test2() {
        System.out.println("test2");
        return "test2 domain call";
    }

    @RequestMapping("/test3")
    public String test3() {
        System.out.println("test3");
        return "test3 domain call";
    }

    @RequestMapping("/route/{path}")
    public String routeYml(@PathVariable("path") String path){
        System.out.println(path);
        return path + " route yml request";
    }

}
